package com.topisv.tms.entity.stock.instorage.pre;

import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.topisv.tms.entity.IdEntity;

/**
 * 预约入库的SKU实体
 *  Date          Author       Version       Description
 * ----------------------------------------------------------
 *  2014-6-27      CC            1.0           Create
 */
@Entity
@Table(name = "instorage_bill_item_pre")
public class InstorageBillItemPre extends IdEntity {

	private static final long serialVersionUID = 1L;
	private Long billPreId;
	private String boxCode;
	private String skuCode;
	private Integer goodsNum;
	private String lineNo;
	private String skuBar;//货号
	private Integer countNum=0;
	private String spec;
	private String skuName;
	@Transient
	public String getSkuName() {
		return skuName;
	}

	public void setSkuName(String skuName) {
		this.skuName = skuName;
	}

	@Transient
	public String getSpec() {
		return spec;
	}

	public void setSpec(String spec) {
		this.spec = spec;
	}

	@Transient
	public Integer getCountNum() {
		return countNum;
	}

	public void setCountNum(Integer countNum) {
		this.countNum = countNum;
	}

	public Long getBillPreId() {
		return billPreId;
	}

	public void setBillPreId(Long billPreId) {
		this.billPreId = billPreId;
	}

	public String getBoxCode() {
		return boxCode;
	}

	public void setBoxCode(String boxCode) {
		this.boxCode = boxCode;
	}

	public String getSkuCode() {
		return skuCode;
	}

	public void setSkuCode(String skuCode) {
		this.skuCode = skuCode;
	}

	public Integer getGoodsNum() {
		return goodsNum;
	}

	public void setGoodsNum(Integer goodsNum) {
		this.goodsNum = goodsNum;
	}

	public String getLineNo() {
		return lineNo;
	}

	public void setLineNo(String lineNo) {
		this.lineNo = lineNo;
	}
	@Transient
	public String getSkuBar() {
		return skuBar;
	}

	public void setSkuBar(String skuBar) {
		this.skuBar = skuBar;
	}
	

	
	private String itemId;  //仓储系统商品ID
	private String inventoryType;  //库存类型 1 正品，101 残次，102 机损，103 箱损，201 冻结库存，301 在途库存
	private String productDate;  //商品生产日期 YYYY-MM-DD
	private String expireDate;  //商品过期日期YYYY-MM-DD
	private String produceCode;	//生产批号
	private String batchCode;  //批次编码
	private String sourceOrderCode;	//交易平台订单
	private String subSourceOrderCode;	//交易平台子订单编码
	
	public String getItemId() {
		return itemId;
	}

	private String errorFlag; 	//是否破损件


	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getInventoryType() {
		return inventoryType;
	}

	public void setInventoryType(String inventoryType) {
		this.inventoryType = inventoryType;
	}

	public String getProductDate() {
		return productDate;
	}

	public void setProductDate(String productDate) {
		this.productDate = productDate;
	}

	public String getExpireDate() {
		return expireDate;
	}

	public void setExpireDate(String expireDate) {
		this.expireDate = expireDate;
	}

	public String getProduceCode() {
		return produceCode;
	}

	public void setProduceCode(String produceCode) {
		this.produceCode = produceCode;
	}

	public String getBatchCode() {
		return batchCode;
	}

	public void setBatchCode(String batchCode) {
		this.batchCode = batchCode;
	}

	public String getSourceOrderCode() {
		return sourceOrderCode;
	}

	public void setSourceOrderCode(String sourceOrderCode) {
		this.sourceOrderCode = sourceOrderCode;
	}

	public String getSubSourceOrderCode() {
		return subSourceOrderCode;
	}

	public void setSubSourceOrderCode(String subSourceOrderCode) {
		this.subSourceOrderCode = subSourceOrderCode;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	public String getErrorFlag() {
		return errorFlag;
	}

	public void setErrorFlag(String errorFlag) {
		this.errorFlag = errorFlag;
	}
	
}
